package mapper;

import com.lagou.entity.Course;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CourseDao {

    //查询所有课程
    List<Course> getAllCourse();

    //查询用户已购课程
    List<Course> getCourseByUserId(@Param ("userId")String userId);

    //查询一门课程
    Course getCourseById(@Param ("courseid")String courseid);
}
